package servicios;

import classes.Usuario;
import DAOs.UsuarioDAO;

public class ChangePassword extends AbstractService{
	private String pass;
	private String alias;

	public void cambiarPassword(Usuario user, String passAcambiar) {
		
		
		this.pass = passAcambiar;
		this.alias = user.getAlias();
		this.execute();
	}

	@Override
	public void doYourMagic() {
		this.getDao().cambiarPassword(alias, pass);
		
	}
}
